<?php 
class jobDetailsAction extends AdminMaster{	
	public function execute($request){
		$id = $request->getParameter('id', '-1');
		$action = $request->getParameter('action_name', '');
		
		$job = JobsTable::getDataById($id);
		
		if($action == ADMIN_DEFINED::SEARCH_JOB && count($job)){
			$data['job']	= $job;
			$data['majors']		= MasterMajors::getArrayAllKeyId();
			$data['levels']		= MasterEducationLevels::getArrayAllKeyId();
			$data['languages']	= MasterForeignLanguages::getArrayAllKeyId();
			$data['language_levels']	= MasterForeignLanguageLevels::getArrayAllKeyId();
			
		}else{
			$data['error'] = __('hacking_attemp',null,'table_list');
		}
		$this->setVar('data', $data);
		
		//echo '<pre>'; print_r($data);die;
	}
}